//
// Created by Otowa_kotori on 2016/10/4.
//

#include "gtest/gtest.h"
#include "sdk/point.h"
using namespace std;

TEST(basic_test, basic_test) {
    EXPECT_EQ(1, 1);
}

TEST(basic_test, point_test) {
    Point p({1,2});
    EXPECT_EQ(p.x, 1);
    EXPECT_EQ(p.y, 2);
    stringstream ss;
    ss << p;
    EXPECT_EQ(ss.str(), "(1, 2, 0)");
    EXPECT_EQ(getManhattanDist(Point(1, 2), Point(-1, -2)), 6);
    EXPECT_DOUBLE_EQ(getEuclideanDist(Point(0, 0), Point(3, 4)), 5);
}
